package com.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@EnableDiscoveryClient  //能够让注册中心能够发现，扫描到该服务
@SpringBootApplication
@RestController
public class ProviderApplication9005 {
    public static void main(String[] args) {
        SpringApplication.run(ProviderApplication9005.class, args);
        System.err.println("=>>ProviderApplication：9005启动成功~");
    }

    @GetMapping("/hello")
    public String helloNacos(){
        return "Hello，Nacos！by ProviderApplication：9005";
    }

}







